//
//  TGOAuthViewController.swift
//  TGWeiBo
//
//  Created by 涛哥无敌威武 on 16/4/19.
//  Copyright © 2016年 taoge. All rights reserved.
//

import UIKit

class TGOAuthViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
    
        setupUI()
    
    }
    
     //MARK: - 监听方法
   @objc private func cancle(){
    
        dismissViewControllerAnimated(true, completion: nil)
    
    }
    
   @objc private func auto(){
    
        print("自动填充按钮被点击了")
    }
    
    
     //MARK: - 设置视图
    private func setupUI(){
    
        view.backgroundColor = UIColor.whiteColor()

        setupNav()
    }
    
    
     //MARK: - 设置导航栏
    private func setupNav(){
    
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "取消", style: UIBarButtonItemStyle.Plain, target: self, action: "cancle")
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "自动填充", style: UIBarButtonItemStyle.Plain, target: self, action: "auto")
        navigationItem.title = "微博登录"
    
    }
    
}
